export default class ThreadUtils {
    /**
     * 线程阻塞
     * @param delay 毫秒
     */
    static sleep(delay) {
        const start = (new Date()).getTime();
        while((new Date()).getTime() - start < delay) {}
    }
}
